package String;

public class StringBuilderDemo {
    public static void main(String[] args) {

        //内存爆炸小方法
        String str = "a";
        StringBuilder builder = new StringBuilder(str);
        for (int i = 0; i <100000000 ; i++) {
            builder.append("a");

        }
        System.out.println("程序结束");
    }
}
